<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">
    <div class="row">
        <ol class="breadcrumb">
            <li><a href="#"><span class="glyphicon glyphicon-user"></span></a></li>
            <li class="active">高校信息查询</li>
        </ol>
    </div>
    <!--/.row-->

    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <button class="button btn btn-info glyphicon glyphicon-plus fa" id="btnAdd">新增企业信息</button>
                </div>
                <!-- SAMPLE BOX CONFIGURATION MODAL FORM-->
                <div class="modal fade" id="table-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                     aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content modal-table">
                            <div class="modal-header" id="modalHeader">

                            </div><!--head-->
                            <div class="modal-body">
                                <form action="" id="formID" class="form-horizontal" method="post">
                                    <div class="form-group" hidden="hidden">
                                        <label for="companyID" class="control-label col-sm-2 ">ID:</label>
                                        <div class="col-sm-10">
                                            <input type="text" class="form-control border-input" id="companyID" name="companyID">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="name" class="control-label col-sm-2 ">名称:</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control border-input" id="name" name="name">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="profile" class="control-label col-sm-2 ">公司简介:</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control border-input " id="profile" name="profile">
                                        </div>
                                        <lable id="nameError" hidden="hidden"></lable>
                                    </div>
                                    <div class="form-group">
                                        <label for="address" class="control-label col-sm-2 ">公司地址:</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control border-input" id="address" name="address" >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="phone" class="control-label col-sm-2 ">公司电话:</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control border-input" id="phone" name="phone" >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="size" class="control-label col-sm-2 ">公司规模:</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control border-input" id="size" name="size" >
                                        </div>
                                    </div>
                                </form>
                            </div><!--body-->
                            <div class="modal-footer">
                                <button type="button" class="btn btn-danger" data-dismiss="modal">取消</button>
                                <button class="btn btn-primary" onclick="submitForm()">确定</button>
                            </div><!--footer-->
                        </div>
                    </div>
                </div><!-- /SAMPLE BOX CONFIGURATION MODAL FORM-->

                <!--数据呈现-->
                <div class="panel-body">
                    <table id="dataTable"></table>
                </div>
            </div>
        </div>
    </div>
    <!--/.row-->
</div>
<!--/.main-->

<!--模态框删除-->
<div class="modal fade" id="delConfirm"  tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog  modal-sm">
        <div class="modal-content modal-table">
            <div class="modal-header">
            </div><!--head-->
            <div class="modal-body" align="center">
                <form id="delForm">
                    <div class="form-group" hidden="hidden">
                        <label for="delID" class="control-label col-sm-2 ">ID:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control border-input" id="delID" name="companyID">
                        </div>
                    </div>
                    确认删除吗？
                </form>
            </div><!--body-->
            <div class="modal-footer">
                <button type="button" class="btn btn-danger" data-dismiss="modal">取消</button>
                <button class="btn btn-primary" onclick="delSubmit()">确定</button>
            </div><!--footer-->
        </div>
    </div>
</div>


<script type="text/javascript">
    function submitForm() {
        $("#formID").submit();
    }

    function delSubmit() {
        $("#delForm").submit();
    }
</script>


